package com.xuzz.study.springboot.configure;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class DemoServiceImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        //可以根据注解来加载不同的配置

        return new String[]{
                DemoService3Configure.class.getName(),
                DemoService4Configure.class.getName()
        };
    }
}
